# -*- coding: utf-8 -*-
import webapp2

import handler

from google.appengine.ext.webapp.util import run_wsgi_app


routes = [
    webapp2.Route(
        '/',
        handler = handler.ViewLists,
        name = 'show'),
    webapp2.Route(
        '/addpupil',
        handler = handler.AddPupil,
        name = 'add'),
    webapp2.Route(
        '/addparallels',
        handler = handler.AddParallels,
        name = 'addpar'),
    webapp2.Route(
        '/parallels',
        handler = handler.ViewParallels,
        name = 'showpar'),
    webapp2.Route(
        '/clearpar',
        handler = handler.ClearParallels,
        name = 'clearpar'),
    webapp2.Route(
        '/clear',
        handler = handler.ClearPupils,
        name = 'clear'),
]

application = webapp2.WSGIApplication(routes, debug = True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
